import request from '@/utils/request'

// 查询学员签署协议列表
export function listProtpcpl(query) {
  return request({
    url: '/student/protpcpl/list',
    method: 'get',
    params: query
  })
}

// 查询学员签署协议详细
export function getProtpcpl(studentId) {
  return request({
    url: '/student/protpcpl/queryStuProtocol/' + studentId,
    method: 'get'
  })
}

// 新增学员签署协议
export function addProtpcpl(data) {
  return request({
    url: '/student/protpcpl',
    method: 'post',
    data: data
  })
}

// 修改学员签署协议
export function updateProtpcpl(data) {
  return request({
    url: '/student/protpcpl',
    method: 'put',
    data: data
  })
}

// 删除学员签署协议
export function delProtpcpl(studentId) {
  return request({
    url: '/student/protpcpl/delStuProtocol/' + studentId,
    method: 'delete'
  })
}

// 导出学员签署协议
export function exportProtpcpl(query) {
  return request({
    url: '/student/protpcpl/export',
    method: 'get',
    params: query
  })
}